package com.haikesi.api.resource.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
public class ResourecesSearchVO  implements Serializable{	
	 private static final long serialVersionUID = -1L;

	@ApiModelProperty(value = "菜单id")
	private String menuAuthorityId;

	@ApiModelProperty(value = "资源名称")
	private String resourcesName;

	@ApiModelProperty(value = "资源url")
	private String resourcesUrl;

	@ApiModelProperty(value = "资源请求方式")
	private String requestMethod;

	 @ApiModelProperty(value = "页数")
	private Integer pageNum;
	@ApiModelProperty(value = "每页行数")
	private Integer pageSize;

	public Integer getPageNum() {
		if(pageNum == null){
			pageNum = 1;
		}
		return pageNum;
	}
	public Integer getPageSize() {
		if(pageSize == null){
			pageSize = 20;
		}
		if(pageSize > 100){
			pageSize = 100;
		}
		return pageSize;
	}
   

}
